﻿$(document).ready(function () {
    try {
        if ($.cookie('mbCompanyname')) $('#tb_company').attr("value", $.cookie('mbCompanyname'));
        if ($.cookie('mbUsername')) $('#tb_userid').attr("value", $.cookie('mbUsername'));
    }
    catch (err)
            { }
});

function getCompanyName() {
    try {
        $.cookie('mbCompanyname', $('#tb_company').attr("value"), { expires: 30 });
        $.cookie('mbUsername', $('#tb_userid').attr("value"), { expires: 30 });
    }
    catch (err)
       { }
}